package com.robot.merchant.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import com.robot.merchant.pojo.Company;

import java.time.LocalDateTime;
import java.util.List;

/**
 * company数据访问接口
 *
 * @author
 */
public interface CompanyDao extends JpaRepository<Company, String>, JpaSpecificationExecutor<Company> {
    /**
     * 通过agentId查询company列表
     *
     * @param agentId
     * @return
     */
    public List<Company> findAllByAgentId(String agentId);

}
